using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class GetUserNameRequest : GeneratedMessageLite<GetUserNameRequest, GetUserNameRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<GetUserNameRequest, GetUserNameRequest.Builder>
		{
			private bool resultIsReadOnly;
			private GetUserNameRequest result;
			protected override GetUserNameRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override GetUserNameRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override GetUserNameRequest DefaultInstanceForType
			{
				get
				{
					return GetUserNameRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public uint BindUin
			{
				get
				{
					return this.result.BindUin;
				}
				set
				{
					this.SetBindUin(value);
				}
			}
			public string NickName
			{
				get
				{
					return this.result.NickName;
				}
				set
				{
					this.SetNickName(value);
				}
			}
			public string Ticket
			{
				get
				{
					return this.result.Ticket;
				}
				set
				{
					this.SetTicket(value);
				}
			}
			public string Pwd
			{
				get
				{
					return this.result.Pwd;
				}
				set
				{
					this.SetPwd(value);
				}
			}
			public string Mobile
			{
				get
				{
					return this.result.Mobile;
				}
				set
				{
					this.SetMobile(value);
				}
			}
			public uint OpCode
			{
				get
				{
					return this.result.OpCode;
				}
				set
				{
					this.SetOpCode(value);
				}
			}
			public Builder()
			{
				this.result = GetUserNameRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(GetUserNameRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private GetUserNameRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					GetUserNameRequest other = this.result;
					this.result = new GetUserNameRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override GetUserNameRequest.Builder Clear()
			{
				this.result = GetUserNameRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override GetUserNameRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new GetUserNameRequest.Builder(this.result);
				}
				return new GetUserNameRequest.Builder().MergeFrom(this.result);
			}
			public override GetUserNameRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override GetUserNameRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is GetUserNameRequest)
				{
					return this.MergeFrom((GetUserNameRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override GetUserNameRequest.Builder MergeFrom(GetUserNameRequest other)
			{
				return this;
			}
			public override GetUserNameRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override GetUserNameRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(GetUserNameRequest._getUserNameRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = GetUserNameRequest._getUserNameRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 26u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								BaseRequest.Builder builder = BaseRequest.CreateBuilder();
								if (this.result.hasBaseRequest)
								{
									builder.MergeFrom(this.BaseRequest);
								}
								input.ReadMessage(builder, extensionRegistry);
								this.BaseRequest = builder.BuildPartial();
								continue;
							}
						}
						else
						{
							if (num3 == 16u)
							{
								this.result.hasBindUin = input.ReadUInt32(ref this.result.bindUin_);
								continue;
							}
							if (num3 == 26u)
							{
								this.result.hasNickName = input.ReadString(ref this.result.nickName_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 42u)
						{
							if (num3 == 34u)
							{
								this.result.hasTicket = input.ReadString(ref this.result.ticket_);
								continue;
							}
							if (num3 == 42u)
							{
								this.result.hasPwd = input.ReadString(ref this.result.pwd_);
								continue;
							}
						}
						else
						{
							if (num3 == 50u)
							{
								this.result.hasMobile = input.ReadString(ref this.result.mobile_);
								continue;
							}
							if (num3 == 56u)
							{
								this.result.hasOpCode = input.ReadUInt32(ref this.result.opCode_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public GetUserNameRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public GetUserNameRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public GetUserNameRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public GetUserNameRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public GetUserNameRequest.Builder SetBindUin(uint value)
			{
				this.PrepareBuilder();
				this.result.hasBindUin = true;
				this.result.bindUin_ = value;
				return this;
			}
			public GetUserNameRequest.Builder ClearBindUin()
			{
				this.PrepareBuilder();
				this.result.hasBindUin = false;
				this.result.bindUin_ = 0u;
				return this;
			}
			public GetUserNameRequest.Builder SetNickName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasNickName = true;
				this.result.nickName_ = value;
				return this;
			}
			public GetUserNameRequest.Builder ClearNickName()
			{
				this.PrepareBuilder();
				this.result.hasNickName = false;
				this.result.nickName_ = "";
				return this;
			}
			public GetUserNameRequest.Builder SetTicket(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasTicket = true;
				this.result.ticket_ = value;
				return this;
			}
			public GetUserNameRequest.Builder ClearTicket()
			{
				this.PrepareBuilder();
				this.result.hasTicket = false;
				this.result.ticket_ = "";
				return this;
			}
			public GetUserNameRequest.Builder SetPwd(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasPwd = true;
				this.result.pwd_ = value;
				return this;
			}
			public GetUserNameRequest.Builder ClearPwd()
			{
				this.PrepareBuilder();
				this.result.hasPwd = false;
				this.result.pwd_ = "";
				return this;
			}
			public GetUserNameRequest.Builder SetMobile(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasMobile = true;
				this.result.mobile_ = value;
				return this;
			}
			public GetUserNameRequest.Builder ClearMobile()
			{
				this.PrepareBuilder();
				this.result.hasMobile = false;
				this.result.mobile_ = "";
				return this;
			}
			public GetUserNameRequest.Builder SetOpCode(uint value)
			{
				this.PrepareBuilder();
				this.result.hasOpCode = true;
				this.result.opCode_ = value;
				return this;
			}
			public GetUserNameRequest.Builder ClearOpCode()
			{
				this.PrepareBuilder();
				this.result.hasOpCode = false;
				this.result.opCode_ = 0u;
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int BindUinFieldNumber = 2;
		public const int NickNameFieldNumber = 3;
		public const int TicketFieldNumber = 4;
		public const int PwdFieldNumber = 5;
		public const int MobileFieldNumber = 6;
		public const int OpCodeFieldNumber = 7;
		private static readonly GetUserNameRequest defaultInstance;
		private static readonly string[] _getUserNameRequestFieldNames;
		private static readonly uint[] _getUserNameRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasBindUin;
		private uint bindUin_;
		private bool hasNickName;
		private string nickName_ = "";
		private bool hasTicket;
		private string ticket_ = "";
		private bool hasPwd;
		private string pwd_ = "";
		private bool hasMobile;
		private string mobile_ = "";
		private bool hasOpCode;
		private uint opCode_;
		private int memoizedSerializedSize = -1;
		public static GetUserNameRequest DefaultInstance
		{
			get
			{
				return GetUserNameRequest.defaultInstance;
			}
		}
		public override GetUserNameRequest DefaultInstanceForType
		{
			get
			{
				return GetUserNameRequest.DefaultInstance;
			}
		}
		protected override GetUserNameRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public uint BindUin
		{
			get
			{
				return this.bindUin_;
			}
		}
		public string NickName
		{
			get
			{
				return this.nickName_;
			}
		}
		public string Ticket
		{
			get
			{
				return this.ticket_;
			}
		}
		public string Pwd
		{
			get
			{
				return this.pwd_;
			}
		}
		public string Mobile
		{
			get
			{
				return this.mobile_;
			}
		}
		public uint OpCode
		{
			get
			{
				return this.opCode_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasBindUin && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasBindUin)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.BindUin);
				}
				if (this.hasNickName)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.NickName);
				}
				if (this.hasTicket)
				{
					num += CodedOutputStream.ComputeStringSize(4, this.Ticket);
				}
				if (this.hasPwd)
				{
					num += CodedOutputStream.ComputeStringSize(5, this.Pwd);
				}
				if (this.hasMobile)
				{
					num += CodedOutputStream.ComputeStringSize(6, this.Mobile);
				}
				if (this.hasOpCode)
				{
					num += CodedOutputStream.ComputeUInt32Size(7, this.OpCode);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private GetUserNameRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] getUserNameRequestFieldNames = GetUserNameRequest._getUserNameRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, getUserNameRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasBindUin)
			{
				output.WriteUInt32(2, getUserNameRequestFieldNames[1], this.BindUin);
			}
			if (this.hasNickName)
			{
				output.WriteString(3, getUserNameRequestFieldNames[3], this.NickName);
			}
			if (this.hasTicket)
			{
				output.WriteString(4, getUserNameRequestFieldNames[6], this.Ticket);
			}
			if (this.hasPwd)
			{
				output.WriteString(5, getUserNameRequestFieldNames[5], this.Pwd);
			}
			if (this.hasMobile)
			{
				output.WriteString(6, getUserNameRequestFieldNames[2], this.Mobile);
			}
			if (this.hasOpCode)
			{
				output.WriteUInt32(7, getUserNameRequestFieldNames[4], this.OpCode);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasBindUin)
			{
				num ^= this.bindUin_.GetHashCode();
			}
			if (this.hasNickName)
			{
				num ^= this.nickName_.GetHashCode();
			}
			if (this.hasTicket)
			{
				num ^= this.ticket_.GetHashCode();
			}
			if (this.hasPwd)
			{
				num ^= this.pwd_.GetHashCode();
			}
			if (this.hasMobile)
			{
				num ^= this.mobile_.GetHashCode();
			}
			if (this.hasOpCode)
			{
				num ^= this.opCode_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			GetUserNameRequest getUserNameRequest = object_0 as GetUserNameRequest;
			return getUserNameRequest != null && (this.hasBaseRequest == getUserNameRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(getUserNameRequest.baseRequest_))) && (this.hasBindUin == getUserNameRequest.hasBindUin && (!this.hasBindUin || this.bindUin_.Equals(getUserNameRequest.bindUin_))) && (this.hasNickName == getUserNameRequest.hasNickName && (!this.hasNickName || this.nickName_.Equals(getUserNameRequest.nickName_))) && (this.hasTicket == getUserNameRequest.hasTicket && (!this.hasTicket || this.ticket_.Equals(getUserNameRequest.ticket_))) && (this.hasPwd == getUserNameRequest.hasPwd && (!this.hasPwd || this.pwd_.Equals(getUserNameRequest.pwd_))) && (this.hasMobile == getUserNameRequest.hasMobile && (!this.hasMobile || this.mobile_.Equals(getUserNameRequest.mobile_))) && (this.hasOpCode == getUserNameRequest.hasOpCode && (!this.hasOpCode || this.opCode_.Equals(getUserNameRequest.opCode_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<GetUserNameRequest, GetUserNameRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<GetUserNameRequest, GetUserNameRequest.Builder>.PrintField("BindUin", this.hasBindUin, this.bindUin_, writer);
			GeneratedMessageLite<GetUserNameRequest, GetUserNameRequest.Builder>.PrintField("NickName", this.hasNickName, this.nickName_, writer);
			GeneratedMessageLite<GetUserNameRequest, GetUserNameRequest.Builder>.PrintField("Ticket", this.hasTicket, this.ticket_, writer);
			GeneratedMessageLite<GetUserNameRequest, GetUserNameRequest.Builder>.PrintField("Pwd", this.hasPwd, this.pwd_, writer);
			GeneratedMessageLite<GetUserNameRequest, GetUserNameRequest.Builder>.PrintField("Mobile", this.hasMobile, this.mobile_, writer);
			GeneratedMessageLite<GetUserNameRequest, GetUserNameRequest.Builder>.PrintField("OpCode", this.hasOpCode, this.opCode_, writer);
		}
		public static GetUserNameRequest ParseFrom(byte[] data)
		{
			return GetUserNameRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private GetUserNameRequest MakeReadOnly()
		{
			return this;
		}
		public static GetUserNameRequest.Builder CreateBuilder()
		{
			return new GetUserNameRequest.Builder();
		}
		public override GetUserNameRequest.Builder ToBuilder()
		{
			return GetUserNameRequest.CreateBuilder(this);
		}
		public override GetUserNameRequest.Builder CreateBuilderForType()
		{
			return new GetUserNameRequest.Builder();
		}
		public static GetUserNameRequest.Builder CreateBuilder(GetUserNameRequest prototype)
		{
			return new GetUserNameRequest.Builder(prototype);
		}
		static GetUserNameRequest()
		{
			GetUserNameRequest.defaultInstance = new GetUserNameRequest().MakeReadOnly();
			GetUserNameRequest._getUserNameRequestFieldNames = new string[]
			{
				"BaseRequest",
				"BindUin",
				"Mobile",
				"NickName",
				"OpCode",
				"Pwd",
				"Ticket"
			};
			GetUserNameRequest._getUserNameRequestFieldTags = new uint[]
			{
				10u,
				16u,
				50u,
				26u,
				56u,
				42u,
				34u
			};
			object.ReferenceEquals(micromsg.Proto.GetUserNameRequest.Descriptor, null);
		}
	}
}
